import http from "@/api";

import { PORT1 } from "@/api/config/servicePort";





export const getDataApi = (params: FormData) => {
  return http.get(PORT1+`/km/pending-apply/list?get_auth=1&auth_name=pendingApplication`, params, { cancel: false,loading: false  });
};
// 表头
export const getfieldApi = (params: FormData) => {
  return http.get(PORT1+`/km/pending-apply/table-header`, params, { cancel: false,loading: false  });
};
// 行内编辑
export const updatafieldApi = (params: FormData) => {
  return http.post(PORT1+`/km/pending-apply/set-field-value`, params, { cancel: false,loading: false  });
};
//删除
export const propdelete = (params: FormData) => {
  return http.post(PORT1+`/km/pending-apply/delete`, params, { cancel: false,loading: false  });
};

//操作审核
export const propaudit = (params: FormData) => {
  return http.post(PORT1+`/km/pending-apply/audit`, params, { cancel: false,loading: false  });
};


//获取进口公司列表
export const getCompany = (params: FormData) => {
  return http.get(PORT1+`/km/pending-apply/get-import-company-list`, params, { cancel: false,loading: false  });
};

//获取进口公司列表
export const getFactory = (params: FormData) => {
  return http.get(PORT1+`/km/pending-apply/get-factory-list`, params, { cancel: false,loading: false  });
};

//待处理申请详情页编辑信息
export const productSetTd = (params: FormData) => {
  return http.post(PORT1+`/km/pending-apply/set-product-field-value`, params, { cancel: false,loading: false  });
};


//删除商品
export const productdelete = (params: FormData) => {
  return http.post(PORT1+`/km/pending-apply/delete-product`, params, { cancel: false,loading: false  });
};




//创建申请单
export const createApply = (params: FormData) => {
  return http.post(PORT1+`/km/pending-apply/create-apply-order`, params, { cancel: false,loading: false  });
};







export const getdetailDataApi = (params: FormData) => {
  return http.get(PORT1+`/km/pending-apply/detail-product-list?get_auth=1&auth_name=pendingApplication`, params, { cancel: false,loading: false  });
};
// 表头
export const getdetailfieldApi = (params: FormData) => {
  return http.get(PORT1+`/km/pending-apply/detail-table-header`, params, { cancel: false,loading: false  });
};
